package com.briup.smart.mapper;

import com.briup.smart.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {

    //查询所有⽤户数据
    @Select("select id, name, age, gender, phone from t_user")      //接口中的方法要和sql语句匹配
    public List<User> list();
}